package com.isunland.managesystem.ui;

import android.content.Intent;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.base.BaseVolleyActivity;

/**
 * 对象功能: 质量核查新增
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/4/7 16:36
 */
public class QualityInspetionDetailActivity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    String id = getIntent().getStringExtra(QualityInspetionDetailFragment.EXTRA_ID);
    return QualityInspetionDetailFragment.newInstance(id);
  }

  public static void newInstance(android.support.v4.app.Fragment fragment,
      BaseVolleyActivity context, int requestCode, String id) {
    if (fragment == null || context == null) return;
    Intent i = new Intent(context, QualityInspetionDetailActivity.class);
    i.putExtra(QualityInspetionDetailFragment.EXTRA_ID, id);
    fragment.startActivityForResult(i, requestCode);
  }
}
